package com.free.bsf.health.config;

import com.free.bsf.core.util.ContextUtils;
import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * @Classname MemeryProperties
 * @Description TODO
 * @Date 2021/5/12 10:50
 * @Created by chejiangyi
 */
@ConfigurationProperties
@Data
public class MemoryParseProperties {
    public static MemoryParseProperties Default(){return ContextUtils.getApplicationContext().getBean(MemoryParseProperties.class);}
    /**
     *
     * @return
     */
    @Value("${bsf.health.memoryParse.sqlQuery.maxSize:5000}")
    private int bsfHealthMemorySqlQueryMaxSize;
    /**
     *
     * @return
     */
    @Value("${bsf.health.memoryParse.feignClient.maxSize:5000}")
    private int bsfHealthMemoryFeignClientMaxSize;


}
